home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / BackBounce / Source / BounceView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  571 b   |  27 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <appkit/View.h>
  5.  
  6. // the number of edges,
  7. #define numEdges 10
  8. // and the maximum velocity of a point in either the x or y direction.
  9. #define maxVel 25
  10. #define minVel 10
  11.  
  12. @interface BounceView:View
  13. {
  14.     short pos[ numEdges][ 4];    // position of each edge. (x1, y1, x2, y2).
  15.     short vel[ 4];        // current point  velocities (for the leading edge)
  16.     id animator;        // to keep us moving . . .
  17. }
  18.  
  19. + newFrame:(NXRect *)r;
  20. - setAnimator:anObject;
  21. - animate:sender;
  22. - animator;
  23. - drawSelf:(NXRect *)r :(int)count;
  24. - moveLine;
  25.  
  26. @end
  27.